get a range to repeat n times